/*
 * @Author: wwl
 * @Date: 2022-03-03 17:12:47
 * @LastEditors: wwl
 * @LastEditTime: 2022-03-29 16:49:36
 */
import http from './http'
export default {
  //首页判断是否展示Banner
  isBanner (data) {
    return http.request({
      url: "twoam/banner/isBanner",
      method: "POST",
      data,
    })
  },
  //获取banner列表
  getBannerListInfo (data) {
    return http.request({
      url: "twoam/banner/getBannerListInfo",
      method: "POST",
      data,
    })
  },
  // 申请售后页面
  orderRefund (data) {
    return http.request({
      url: "twoam/order/orderRefund",
      method: "POST",
      data,
    })
  },
  // 退换货原因
  orderReason (data) {
    return http.request({
      url: "twoam/order/orderReason",
      method: "POST",
      data,
    })
  },
  // 提交退货/退款/换货申请
  orderRefundApply (data) {
    return http.request({
      url: "twoam/order/orderRefundApply",
      method: "POST",
      data,
    })
  },

  // 退换货用户提交的快递信息
  returnExpress (data) {
    return http.request({
      url: "twoam/order/returnExpress",
      method: "POST",
      data,
    })
  },
  // 售后订单列表/详情
  orderReturn (data) {
    return http.request({
      url: "twoam/order/orderReturn",
      method: "POST",
      data,
    })
  },
  // 售后订单取消
  orderReturnCancel (data) {
    return http.request({
      url: "twoam/order/orderReturnCancel",
      method: "POST",
      data,
    })
  },
  // 上传图片
  uploadImg (data) {
    return http.request({
      url: "twoam/user/upload",
      method: "POST",
      data,
    })
  },
  // 售后-换货确认收货
  returnConfirm (data) {
    return http.request({
      url: "twoam/order/returnConfirm",
      method: "POST",
      data,
    })
  },

  // 积分商城支付
  integralPay (data) {
    return http.request({
      url: "twoam/userPay/integral_pay",
      method: "POST",
      data,
    })
  },

  // 3.28新增 获取我的订单 各种订单数量
  getOrderNum (data) {
    return http.request({
      url: "twoam/order/ordersNumber",
      method: "POST",
      data,
    })
  },
  // 3.28新增 查看好物
  goodsThing (data) {
    return http.request({
      url: "twoam/goods/goodsThing",
      method: "POST",
      data,
    })
  },
  getServiceInfo (data) {
    return http.request({
      url: "twoam/service/getServiceInfo",
      method: "POST",
      data,
    })
  },
  getAddress (data) {
    return http.request({
      url: "twoam/wechat/getAddress",
      method: "POST",
      data,
    })
  },
  delAddress (data) {
    return http.request({
      url: "twoam/wechat/delAddress",
      method: "POST",
      data,
    })
  },
  saveAddress (data) {
    return http.request({
      url: "twoam/wechat/saveAddress",
      method: "POST",
      data,
    })
  },
  editAddress (data) {
    return http.request({
      url: "twoam/wechat/editAddress",
      method: "POST",
      data,
    })
  },
  getAddressInfo (data) {
    return http.request({
      url: "twoam/wechat/getAddressInfo",
      method: "POST",
      data,
    })
  },
  getCompanyInfo (data) {
    return http.request({
      url: "twoam/Article/getCompanyInfo",
      method: "POST",
      data,
    })
  },
  getCouponListInfo (data) {
    return http.request({
      url: "twoam/coupon/getCouponListInfo",
      method: "POST",
      data,
    })
  },
  getCouponTypeListInfo (data) {
    return http.request({
      url: "twoam/coupon/getCouponTypeListInfo",
      method: "POST",
      data,
    })
  },
  sendTemplate (data) {
    return http.request({
      url: "twoam/wechat/sendTemplate",
      method: "POST",
      data,
    })
  },
  getCouponInfo (data) {
    return http.request({
      url: "twoam/coupon/getCouponInfo",
      method: "POST",
      data,
    })
  },
  getExchangeGoodsInfo (data) {
    return http.request({
      url: "twoam/Article/getExchangeGoodsInfo",
      method: "POST",
      data,
    })
  },
  integralInfo (data) {
    return http.request({
      url: "twoam/wechat/integralInfo",
      method: "POST",
      data,
    })
  },
  storeDetail (data) {
    return http.request({
      url: "twoam/store/detail",
      method: "POST",
      data,
    })
  },
  storeGetitem (data) {
    return http.request({
      url: "twoam/store/get_item",
      method: "POST",
      data,
    })
  },
  loginQrcode (data) {
    return http.request({
      url: "twoam/wechat/login_qrcode",
      method: "POST",
      data,
    })
  },
  goodsLists(data) {
    return http.request({
      url: "twoam/goods/goodsLists",
      method: "POST",
      data,
    })
  },
  goodsGetInfo(data) {
    return http.request({
      url: "twoam/goods/getInfo",
      method: "POST",
      data,
    })
  },
  integralGoodsDetail(data) {
    return http.request({
      url: "twoam/integralGoods/detail",
      method: "POST",
      data,
    })
  },
  createIntegralOrder(data) {
    return http.request({
      url: "twoam/integralOrders/createIntegralOrder",
      method: "POST",
      data,
    })
  },
  getAboutUsInfo(data) {
    return http.request({
      url: "twoam/Article/getAboutUsInfo",
      method: "POST",
      data,
    })
  },
  getUserInfo (data) {
    return http.request({
      url: "twoam/wechat/getInfo",
      method: "POST",
      data,
    })
  },
  getCouponNum (data) {
    return http.request({
      url: "twoam/coupon/getCouponNum",
      method: "POST",
      data,
    })
  },
  getScoreSet (data) {
    return http.request({
      url: "twoam/integral/getScoreSet",
      method: "POST",
      data,
    })
  },
  updateUserInfo (data) {
    return http.request({
      url: "twoam/wechat/updateUserInfo",
      method: "POST",
      data,
    })
  },
  integralGoodsLists (data) {
    return http.request({
      url: "twoam/integralGoods/lists",
      method: "POST",
      data,
    })
  },
  getUserLevel(data) {
    return http.request({
      url: "twoam/user/getUserLevel",
      method: "POST",
      data,
    })
  },
  getScoreRuleInfo(data) {
    return http.request({
      url: "twoam/article/getScoreRuleInfo",
      method: "POST",
      data,
    })
  },
  getJoinUsInfo(data) {
    return http.request({
      url: "twoam/Article/getJoinUsInfo",
      method: "POST",
      data,
    })
  },
  getPoliceInfo(data) {
    return http.request({
      url: "twoam/article/getPoliceInfo",
      method: "POST",
      data,
    })
  },
  ArticleGetProblem(data) {
    return http.request({
      url: "twoam/Article/getProblem",
      method: "POST",
      data,
    })
  },
  integral(data) {
    return http.request({
      url: "twoam/wechat/integral",
      method: "POST",
      data,
    })
  },
  setLoginUser(data) {
    return http.request({
      url: "twoam/wechat/setLoginUser",
      method: "POST",
      data,
    })
  },
  getWechatUserPhoneV2(data) {
    return http.request({
      url: "twoam/Wechat/getWechatUserPhoneV2",
      method: "POST",
      data,
    })
  },
  getUserEnterprise(data) {
    return http.request({
      url: "twoam/wechat/getUserEnterprise",
      method: "POST",
      data,
    })
  },
  integralConfig(data) {
    return http.request({
      url: "twoam/wechat/integralConfig",
      method: "POST",
      data,
    })
  },
  authentication(data) {
    return http.request({
      url: "twoam/user/authentication",
      method: "POST",
      data,
    })
  },
  sendCoupon(data) {
    return http.request({
      url: "twoam/coupon/sendCoupon",
      method: "POST",
      data,
    })
  },
  shareIntegral(data) {
    return http.request({
      url: "twoam/wechat/shareIntegral",
      method: "POST",
      data,
    })
  },
  getcity(data) {
    return http.request({
      url: "twoam/store/get_city",
      method: "POST",
      data,
    })
  },
  getproject(data) {
    return http.request({
      url: "twoam/store/get_project",
      method: "POST",
      data,
    })
  },
  storeLists(data) {
    return http.request({
      url: "twoam/store/lists",
      method: "POST",
      data,
    })
  },
  storeExceptionAdd(data) {
    return http.request({
      url: "twoam/storeException/add",
      method: "POST",
      data,
    })
  },
  storeExceptionGetinfo(data) {
    return http.request({
      url: "twoam/storeException/get_info",
      method: "POST",
      data,
    })
  },
  estimatePrice(data) {
    return http.request({
      url: "twoam/order/estimatePrice",
      method: "POST",
      data,
    })
  },
  getIntegralConfig(data) {
    return http.request({
      url: "twoam/integral/getIntegralConfig",
      method: "POST",
      data,
    })
  },
  getBannerInfo(data) {
    return http.request({
      url: "twoam/banner/getBannerInfo",
      method: "POST",
      data,
    })
  },
}